/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.ex;

import java.util.regex.Pattern;

/**
 * <p>Project: javase - Ex3
 * <p>Powered by webrx On 2021-12-07 09:21:13
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Ex3 {
    public static void main(String[] args) {
        String s = "中123国No1-China!你好-helloJAMES!";
        var p = Pattern.compile("[\\u4e00-\\u9fa5A-Z\\d]+");
        var m = p.matcher(s);
        while (m.find())
            System.out.printf("%s%n", m.group());

    }
}
